﻿using System;
using System.Collections.Generic;

namespace CID.Domain.Users
{
    public interface IUser : INamedEntity
    {
        string UserName { get; set; }
        string Email { get; set; }
        bool Enabled { get; set; }
        IEnumerable<IUserRoleAssignment> AssignedRoles { get; }

        bool Is(UserRole userRole);
        void AssignRole(UserRole userRole);
        void UnassignRole(UserRole userRole);
    }
}
